package 设计模式.适配器模式;
//客服端：想上网，插不上网线
public class Computer {
    public void net(NetToUsb netToUsb){
        //上网的具体实现  找一个转接头
        netToUsb.handleRequest();
    }

    public static void main(String[] args) {
        Computer computer = new Computer();
        Adapter adapter = new Adapter();
        AdaptNet2 adaptNet = new AdaptNet2(adapter);

        computer.net(adaptNet);
    }
}
